<link rel="stylesheet" href="/css/user.css">
<link rel="stylesheet" href="/css/chosen.css">
<script src="/js/chosen.jquery.min.js" type="text/javascript"></script>
<script src="/js/jquery.validate.min.js" type="text/javascript"></script>

<script type="text/javascript">	
	$(document).ready(function() {
		$("#bank").validate();
        /*
		$("#address1").rules("add", {required:true, rangelength: [3, 30]});
		$("#address2").rules("add", {required:false, rangelength: [3, 30]});
		$("#city").rules("add", {required:true, rangelength: [3, 20]});
		$("#county").rules("add", {required:false, rangelength: [3, 15]});
        $("#postcode").rules("add", {required:true, rangelength: [3, 10]});
        $("#country").rules("add", {required:true, rangelength: [3, 30]});
        $("#note").rules("add", {required:false, rangelength: [1, 25]});
        */
	});
</script>

<?php   
    echo $this->render('header.phtml'); 
    echo $this->render('user/subnav.phtml');
?>
<section id="main" class="add-bank">
    <div class="title">Add Bank</div>
<?php 
    if (!empty($this->error)) echo '<div class=error>'.$this->error.'</div>';
    if (!empty($this->message)) echo '<div class="flash">'.$this->message.'</div>';
   	echo $this->form; 
?>
</section>
<script type="text/javascript"> $(".chzn-select").chosen(); </script>
<?php echo $this->render('footer.phtml'); ?>